package com.news.model;

public class Sort {
    private Integer sort_id;    // 分类ID
    private String name;       // 分类名称
    private Integer newsCount;  // 新闻数量（非数据库字段）

    public Sort() {
    }

    public Sort(Integer sort_id, String name) {
        this.sort_id = sort_id;
        this.name = name;
    }

    /**
     * 获取
     * @return sort_id
     */
    public Integer getSort_id() {
        return sort_id;
    }

    /**
     * 设置
     * @param sort_id
     */
    public void setSort_id(Integer sort_id) {
        this.sort_id = sort_id;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取新闻数量
     * @return newsCount
     */
    public Integer getNewsCount() {
        return newsCount;
    }

    /**
     * 设置新闻数量
     * @param newsCount
     */
    public void setNewsCount(Integer newsCount) {
        this.newsCount = newsCount;
    }

    public String toString() {
        return "Sort{sort_id = " + sort_id + ", name = " + name + ", newsCount = " + newsCount + "}";
    }
}